<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:17:10 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git update-ref</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Plumbing_Commands">
                                Plumbing Commands                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="e1fe55f99175c29b380dff30850a7dff6e7a46b1e0bca9cca1d52fd647aed4af/f8" data-source="git-update-ref" onmousemove="i18n(this)">git-update-ref</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="75463ea6d194b20d0a5d8f27a4502d750b0d89fd7c21eec0cd79109e36367b43/75" data-source="git-update-ref - Update the object name stored in a ref safely" onmousemove="i18n(this)">git-update-ref &mdash; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &khcy;&rcy;&acy;&ncy;&yacy;&shchcy;&iecy;&iecy;&scy;&yacy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-xml">git update-ref [-m <span class="hljs-tag">&lt;<span class="hljs-name">reason</span>&gt;</span>] [--no-deref] (-d <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> [<span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] | [--create-reflog] <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">newvalue</span>&gt;</span> [<span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] | --stdin [-z])</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="857e9d16441bef974f7b0e5040d5a51962148b16e635a207ce154f77fa38300a/af" data-source="Given two arguments, stores the &amp;lt;newvalue&amp;gt; in the &amp;lt;ref&amp;gt;, possibly dereferencing the symbolic refs. E.g. &lt;code&gt;git update-ref HEAD
&amp;lt;newvalue&amp;gt;&lt;/code&gt; updates the current branch head to the new object." onmousemove="i18n(this)">&Ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&yacy; &dcy;&vcy;&acy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy; &lt;newvalue&gt; &vcy; &lt;ref&gt;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>git update-ref HEAD
&lt;newvalue&gt;</code>  &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&ocy;&kcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy; &ncy;&ocy;&vcy;&ycy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&mcy;.</span></p> <p><span data-i18n="4ea4f75259343dca9b192778b4397642df758b09c9647cb0011366573194df8e/87" data-source="Given three arguments, stores the &amp;lt;newvalue&amp;gt; in the &amp;lt;ref&amp;gt;, possibly dereferencing the symbolic refs, after verifying that the current value of the &amp;lt;ref&amp;gt; matches &amp;lt;oldvalue&amp;gt;. E.g. &lt;code&gt;git update-ref refs/heads/master &amp;lt;newvalue&amp;gt; &amp;lt;oldvalue&amp;gt;&lt;/code&gt; updates the master branch head to &amp;lt;newvalue&amp;gt; only if its current value is &amp;lt;oldvalue&amp;gt;. You can specify 40 &amp;quot;0&amp;quot; or an empty string as &amp;lt;oldvalue&amp;gt; to make sure that the ref you are creating does not exist." onmousemove="i18n(this)">&Ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&yacy; &tcy;&rcy;&icy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy; &lt;newvalue&gt; &vcy; &lt;ref&gt;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &lt;ref&gt; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &lt;oldvalue&gt;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>git update-ref refs/heads/master &lt;newvalue&gt; &lt;oldvalue&gt;</code>  &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&ocy;&kcy; &gcy;&lcy;&acy;&vcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy; &dcy;&ocy; &lt;newvalue&gt;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &iecy;&scy;&lcy;&icy; &iecy;&gcy;&ocy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &lt;oldvalue&gt;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; 40  &quot;0&quot;  &icy;&lcy;&icy; &pcy;&ucy;&scy;&tcy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &lt;oldvalue&gt;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&bcy;&iecy;&dcy;&icy;&tcy;&softcy;&scy;&yacy;, &chcy;&tcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&acy;&yacy; &vcy;&acy;&mcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;.</span></p> <p><span data-i18n="920a66880ad0aa5df4f92bb83bc07c20a8e120b1d107e98ba80b198c4733dc7f/94" data-source="It also allows a &amp;quot;ref&amp;quot; file to be a symbolic pointer to another ref file by starting with the four-byte header sequence of &amp;quot;ref:&amp;quot;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;&ucy;  &quot;ref&quot;  &bcy;&ycy;&tcy;&softcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &fcy;&acy;&jcy;&lcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &scy; &chcy;&iecy;&tcy;&ycy;&rcy;&iecy;&khcy;&bcy;&acy;&jcy;&tcy;&ocy;&vcy;&ocy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&acy;  &quot;ref:&quot; .</span></p> <p><span data-i18n="d24efb2869f9ba6ffec7ec656eef23783d1071f78d40738f2ae847ab78bd25d5/0a" data-source="More importantly, it allows the update of a ref file to follow these symbolic pointers, whether they are symlinks or these &amp;quot;regular file symbolic refs&amp;quot;. It follows &lt;strong&gt;real&lt;/strong&gt; symlinks only if they start with &amp;quot;refs/&amp;quot;: otherwise it will just try to read them and update them as a regular file (i.e. it will allow the filesystem to follow them, but will overwrite such a symlink to somewhere else with a regular filename)." onmousemove="i18n(this)">&CHcy;&tcy;&ocy; &iecy;&shchcy;&iecy; &bcy;&ocy;&lcy;&iecy;&iecy; &vcy;&acy;&zhcy;&ncy;&ocy;, &ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; ref-&fcy;&acy;&jcy;&lcy; &pcy;&ocy; &ecy;&tcy;&icy;&mcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;, &bcy;&ucy;&dcy;&softcy; &tcy;&ocy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy;&lcy;&icy; &ecy;&tcy;&icy;  &quot;regular file symbolic refs&quot; . &Ocy;&ncy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &zcy;&acy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&icy;&mcy;&icy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&acy;&mcy;&icy;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&tcy;&scy;&yacy; &scy;  &quot;refs/&quot; : &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&ncy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &pcy;&ocy;&pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &icy;&khcy; &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &kcy;&acy;&kcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; (&tcy;. &iecy;. &ocy;&ncy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&icy;&tcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&iecy; &scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&softcy; &zcy;&acy; &ncy;&icy;&mcy;&icy;, &ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&shcy;&iecy;&tcy; &tcy;&acy;&kcy;&ucy;&yucy; &ZeroWidthSpace;&ZeroWidthSpace;&scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; &mcy;&iecy;&scy;&tcy;&ocy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&mcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &fcy;&acy;&jcy;&lcy;&acy;). ).</span></p> <p><span data-i18n="5b498210cc0391cde6acb6fd83ff5c91be71983f126b497ff5dac9917b477c02/92" data-source="If --no-deref is given, &amp;lt;ref&amp;gt; itself is overwritten, rather than the result of following the symbolic pointers." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; --no-deref, &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&acy;&mcy; &lt;ref&gt;, &acy; &ncy;&iecy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;.</span></p> <p><span data-i18n="203ba8d08af7891eea4078c70faece1368bde52a053b5616664f97fff8b573bf/71" data-source="In general, using" onmousemove="i18n(this)">&Vcy; &ocy;&bcy;&shchcy;&iecy;&mcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy;</span></p> <div> <div> <pre class="hljs language-perl">git update-<span class="hljs-keyword">ref</span> HEAD <span class="hljs-string">&quot;$head&quot;</span></pre> </div> </div> <p><span data-i18n="8ac662c48f25be6725eda94274c2ab6fb36773385286fc35ce0c28dfe1988696/98" data-source="should be a &lt;code&gt;lot&lt;/code&gt; safer than doing" onmousemove="i18n(this)">&dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy;  <code>lot</code>  &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&iecy;&iecy;, &chcy;&iecy;&mcy; &dcy;&iecy;&lcy;&acy;&tcy;&softcy;</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-built_in">echo</span> <span class="hljs-string">&quot;<span class="hljs-variable">$head</span>&quot;</span> &gt; <span class="hljs-string">&quot;<span class="hljs-variable">$GIT_DIR</span>/HEAD&quot;</span></pre> </div> </div> <p><span data-i18n="5282b80b237859bc7d6336057e8a1a708d39eda1c7c96f078781192590689f72/46" data-source="both from a symlink following standpoint &lt;strong&gt;and&lt;/strong&gt; an error checking standpoint. The &amp;quot;refs/&amp;quot; rule for symlinks means that symlinks that point to &amp;quot;outside&amp;quot; the tree are safe: they&amp;rsquo;ll be followed for reading but not for writing (so we&amp;rsquo;ll never write through a ref symlink to some other tree, if you have copied a whole archive by creating a symlink tree)." onmousemove="i18n(this)">&kcy;&acy;&kcy; &scy; &tcy;&ocy;&chcy;&kcy;&icy; &zcy;&rcy;&iecy;&ncy;&icy;&yacy; &scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &scy;&scy;&ycy;&lcy;&kcy;&acy;&mcy;, &tcy;&acy;&kcy; &icy; &scy; &tcy;&ocy;&chcy;&kcy;&icy; &zcy;&rcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy;. &Pcy;&rcy;&acy;&vcy;&icy;&lcy;&ocy;  &quot;refs/&quot;  &dcy;&lcy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&iecy; &ncy;&acy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;  &quot;outside&quot; , &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ycy;: &ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy;, &ncy;&ocy; &ncy;&iecy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy; (&pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &mcy;&ycy; &ncy;&icy;&kcy;&ocy;&gcy;&dcy;&acy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&mcy; &pcy;&icy;&scy;&acy;&tcy;&softcy; &chcy;&iecy;&rcy;&iecy;&zcy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; ref &ncy;&acy; &kcy;&acy;&kcy;&ocy;&iecy;-&lcy;&icy;&bcy;&ocy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &scy;&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&lcy;&icy; &tscy;&iecy;&lcy;&ocy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;). &acy;&rcy;&khcy;&icy;&vcy; &pcy;&ucy;&tcy;&iecy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;).</span></p> <p><span data-i18n="d53ca39e1fc56859c9f5a318108aca1d663246b930d5b142971a49813165100a/1b" data-source="With &lt;code&gt;-d&lt;/code&gt; flag, it deletes the named &amp;lt;ref&amp;gt; after verifying it still contains &amp;lt;oldvalue&amp;gt;." onmousemove="i18n(this)">&Scy; &fcy;&lcy;&acy;&gcy;&ocy;&mcy;  <code>-d</code>  &ocy;&ncy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&jcy; &lt;ref&gt; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &lt;oldvalue&gt;.</span></p> <p><span data-i18n="c321cc70c7a7c5e6eebf764f31698c3207f12bf01cf2cfde9699c49926ca9b0e/4c" data-source="With &lt;code&gt;--stdin&lt;/code&gt;, update-ref reads instructions from standard input and performs all modifications together. Specify commands of the form:" onmousemove="i18n(this)">&Vcy;  <code>--stdin</code>  update-ref &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&kcy;&tscy;&icy;&icy; &scy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy; &icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &vcy;&scy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy;&mcy;&iecy;&scy;&tcy;&iecy;. &Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &vcy;&icy;&dcy;&acy;:</span></p> <div> <div> <pre class="hljs language-xml">update SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">newvalue</span>&gt;</span> [SP <span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] LF
create SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">newvalue</span>&gt;</span> LF
delete SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> [SP <span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] LF
verify SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> [SP <span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] LF
option SP <span class="hljs-tag">&lt;<span class="hljs-name">opt</span>&gt;</span> LF
start LF
prepare LF
commit LF
abort LF</pre> </div> </div> <p><span data-i18n="e8c1449484589c8c9f11802b78622052740ca76910f444d0a2d38f077b3e9d44/f8" data-source="With &lt;code&gt;--create-reflog&lt;/code&gt;, update-ref will create a reflog for each ref even if one would not ordinarily be created." onmousemove="i18n(this)">&Scy;  <code>--create-reflog</code>  update-ref &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ocy;&ncy; &ncy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="80c189b845a0f7335895556d11a58fac1952e20fdc62ad319e31674d101fcbb4/2f" data-source="Quote fields containing whitespace as if they were strings in C source code; i.e., surrounded by double-quotes and with backslash escapes. Use 40 &amp;quot;0&amp;quot; characters or the empty string to specify a zero value. To specify a missing value, omit the value and its preceding SP entirely." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&yacy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&iecy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&ycy;, &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;, &kcy;&acy;&kcy; &iecy;&scy;&lcy;&icy; &bcy;&ycy; &ocy;&ncy;&icy; &bcy;&ycy;&lcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy; &vcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&mcy; &kcy;&ocy;&dcy;&iecy; C; &tcy;. &iecy;. &ocy;&kcy;&rcy;&ucy;&zhcy;&iecy;&ncy; &dcy;&vcy;&ocy;&jcy;&ncy;&ycy;&mcy;&icy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&acy;&mcy;&icy; &icy; &scy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&jcy; &kcy;&ocy;&scy;&ocy;&jcy; &chcy;&iecy;&rcy;&tcy;&ocy;&jcy;. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; 40 &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ocy;&vcy;  &quot;0&quot;  &icy;&lcy;&icy; &pcy;&ucy;&scy;&tcy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &ocy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &icy; &pcy;&rcy;&iecy;&dcy;&shcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &iecy;&mcy;&ucy; SP.</span></p> <p><span data-i18n="e73a17b5e843bc26ba6ae1d369aa470bca74bf707edecc550a5ddb7a1f1287af/60" data-source="Alternatively, use &lt;code&gt;-z&lt;/code&gt; to specify in NUL-terminated format, without quoting:" onmousemove="i18n(this)">&Acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&ocy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>-z</code>  &dcy;&lcy;&yacy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&yacy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &scy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&shchcy;&icy;&mcy; NUL, &bcy;&iecy;&zcy; &kcy;&acy;&vcy;&ycy;&chcy;&iecy;&kcy;:</span></p> <div> <div> <pre class="hljs language-xml">update SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> NUL <span class="hljs-tag">&lt;<span class="hljs-name">newvalue</span>&gt;</span> NUL [<span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] NUL
create SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> NUL <span class="hljs-tag">&lt;<span class="hljs-name">newvalue</span>&gt;</span> NUL
delete SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> NUL [<span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] NUL
verify SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> NUL [<span class="hljs-tag">&lt;<span class="hljs-name">oldvalue</span>&gt;</span>] NUL
option SP <span class="hljs-tag">&lt;<span class="hljs-name">opt</span>&gt;</span> NUL
start NUL
prepare NUL
commit NUL
abort NUL</pre> </div> </div> <p><span data-i18n="b980401ab58355647148a3095819ae95ea12203b4f7d60ec12487e00437d3a41/ab" data-source="In this format, use 40 &amp;quot;0&amp;quot; to specify a zero value, and use the empty string to specify a missing value." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; 40  &quot;0&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &pcy;&ucy;&scy;&tcy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;.</span></p> <p><span data-i18n="cb85dd4da8eefc4854c7b80051a1d2ab54b6faa1c7982ec695309147888c148f/f5" data-source="In either format, values can be specified in any form that Git recognizes as an object name. Commands in any other format or a repeated &amp;lt;ref&amp;gt; produce an error. Command meanings are:" onmousemove="i18n(this)">&Vcy; &lcy;&yucy;&bcy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &vcy; &lcy;&yucy;&bcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy;  Git  &rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&iecy;&tcy; &kcy;&acy;&kcy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &vcy; &lcy;&yucy;&bcy;&ocy;&mcy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &icy;&lcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&yacy;&yucy;&shchcy;&icy;&jcy;&scy;&yacy; &lt;ref&gt; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&yacy;&tcy; &kcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;. &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;:</span></p> <div> <dl> <dt id="Documentation/git-update-ref.txt-update"><span data-i18n="2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4/c9" data-source="update" onmousemove="i18n(this)">update</span></dt> <dd> <p><span data-i18n="12d5223e598848abfc7e41d3c2e88756b2fd9b8afd76dcb70819255cbe4c403d/6b" data-source="Set &amp;lt;ref&amp;gt; to &amp;lt;newvalue&amp;gt; after verifying &amp;lt;oldvalue&amp;gt;, if given. Specify a zero &amp;lt;newvalue&amp;gt; to ensure the ref does not exist after the update and/or a zero &amp;lt;oldvalue&amp;gt; to make sure the ref does not exist before the update." onmousemove="i18n(this)">&Ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &dcy;&lcy;&yacy; &lt;ref&gt; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &lt;newvalue&gt; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &lt;oldvalue&gt;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;. &Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&iecy; &lt;newvalue&gt;, &chcy;&tcy;&ocy;&bcy;&ycy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;, &icy;/&icy;&lcy;&icy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&iecy; &lt;oldvalue&gt;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&bcy;&iecy;&dcy;&icy;&tcy;&softcy;&scy;&yacy;, &chcy;&tcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &dcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-create"><span data-i18n="fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799/2b" data-source="create" onmousemove="i18n(this)">create</span></dt> <dd> <p><span data-i18n="bf05f8bb3711d3d0b7414fa88349111da020141922130400982e96060da60e98/af" data-source="Create &amp;lt;ref&amp;gt; with &amp;lt;newvalue&amp;gt; after verifying it does not exist. The given &amp;lt;newvalue&amp;gt; may not be zero." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &lt;ref&gt; &scy; &lt;newvalue&gt; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &iecy;&gcy;&ocy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&yacy;. &Dcy;&acy;&ncy;&ncy;&ocy;&iecy; &lt;&ncy;&ocy;&vcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;&gt; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-delete"><span data-i18n="6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04/cd" data-source="delete" onmousemove="i18n(this)">delete</span></dt> <dd> <p><span data-i18n="f5853fe1e246ac3e27ae33fef4c680dbec36507448c7a15ea7a0def6b8827385/2e" data-source="Delete &amp;lt;ref&amp;gt; after verifying it exists with &amp;lt;oldvalue&amp;gt;, if given. If given, &amp;lt;oldvalue&amp;gt; may not be zero." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &lt;ref&gt; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &iecy;&gcy;&ocy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &lt;oldvalue&gt;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;. &IEcy;&scy;&lcy;&icy; &zcy;&acy;&dcy;&acy;&ncy;&ocy;, &lt;oldvalue&gt; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-verify"><span data-i18n="a12dd3a7fd3203a452eb34d91a9be20569d5e337a3384347068895c07f3e0c5a/69" data-source="verify" onmousemove="i18n(this)">verify</span></dt> <dd> <p><span data-i18n="1c1b19dd237d89732ffebe974be6baf9d7a01a6cc96151fe8900d921fd70396c/ac" data-source="Verify &amp;lt;ref&amp;gt; against &amp;lt;oldvalue&amp;gt; but do not change it. If &amp;lt;oldvalue&amp;gt; is zero or missing, the ref must not exist." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&softcy;&tcy;&iecy; &lt;ref&gt; &ncy;&acy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&iecy; &lt;oldvalue&gt;, &ncy;&ocy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&jcy;&tcy;&iecy; &iecy;&gcy;&ocy;. &IEcy;&scy;&lcy;&icy; &lt;oldvalue&gt; &rcy;&acy;&vcy;&ncy;&ocy; &ncy;&ucy;&lcy;&yucy; &icy;&lcy;&icy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&iecy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-option"><span data-i18n="a11a75e0feeecc1a9eff682b06ef0b1461ed4ee7a4d6da4ae333bdc1041d9d51/84" data-source="option" onmousemove="i18n(this)">option</span></dt> <dd> <p><span data-i18n="d485a78552f114597f61992bad9e2c475708827d23f79eef8188df988eb74b50/09" data-source="Modify the behavior of the next command naming a &amp;lt;ref&amp;gt;. The only valid option is &lt;code&gt;no-deref&lt;/code&gt; to avoid dereferencing a symbolic ref." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &ncy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&iecy;&jcy; &lt;ref&gt;. &IEcy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&acy;&yacy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&acy;&yacy; &ocy;&pcy;&tscy;&icy;&yacy; &mdash;  <code>no-deref</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-start"><span data-i18n="cced28c6dc3f99c2396a5eaad732bf6b28142335892b1cd0e6af6cdb53f5ccfa/9b" data-source="start" onmousemove="i18n(this)">start</span></dt> <dd> <p><span data-i18n="00c4f50b44fda3152e932d2ae0f924a3178be3384641883f39d88b65618b7a82/74" data-source="Start a transaction. In contrast to a non-transactional session, a transaction will automatically abort if the session ends without an explicit commit. This command may create a new empty transaction when the current one has been committed or aborted already." onmousemove="i18n(this)">&Ncy;&acy;&chcy;&acy;&tcy;&softcy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;. &Vcy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&iecy; &ocy;&tcy; &ncy;&iecy;&tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&iecy;&acy;&ncy;&scy;&acy;, &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &scy;&iecy;&acy;&ncy;&scy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &bcy;&iecy;&zcy; &yacy;&vcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &ncy;&ocy;&vcy;&ucy;&yucy; &pcy;&ucy;&scy;&tcy;&ucy;&yucy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&acy;&yacy; &ucy;&zhcy;&iecy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&acy; &icy;&lcy;&icy; &pcy;&rcy;&iecy;&rcy;&vcy;&acy;&ncy;&acy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-prepare"><span data-i18n="45666d976bab316d970ec459afd866d9e9a0681ac510f0911f2ac33e9142e51b/2b" data-source="prepare" onmousemove="i18n(this)">prepare</span></dt> <dd> <p><span data-i18n="d314d51b04f64f2470ba6be41c851877176b27175adc877ff20d703f15016eb4/e2" data-source="Prepare to commit the transaction. This will create lock files for all queued reference updates. If one reference could not be locked, the transaction will be aborted." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&softcy;&tcy;&iecy;&scy;&softcy; &kcy; &scy;&ocy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yucy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&icy;. &Ecy;&tcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy; &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&khcy;&scy;&yacy; &vcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&icy;. &IEcy;&scy;&lcy;&icy; &ocy;&dcy;&ncy;&ucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&ocy;&scy;&softcy; &zcy;&acy;&bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&iecy;&rcy;&vcy;&acy;&ncy;&acy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-commit"><span data-i18n="9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098/55" data-source="commit" onmousemove="i18n(this)">commit</span></dt> <dd> <p><span data-i18n="898ceb52578b968019d062ed66f395ca6be3a88f2f6b1d646d136f3797d843ef/3c" data-source="Commit all reference updates queued for the transaction, ending the transaction." onmousemove="i18n(this)">&Zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &vcy;&scy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&icy;, &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&vcy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;.</span></p> </dd> <dt id="Documentation/git-update-ref.txt-abort"><span data-i18n="3a53db8a2c8a17ee3ea667bc146718c004d4446dee670a46d426e563ced7bc2f/61" data-source="abort" onmousemove="i18n(this)">abort</span></dt> <dd> <p><span data-i18n="884ebb1fb47ac6ff8abeaadd8e02eab0d8c018c4a698691d91d4378c329abe69/1c" data-source="Abort the transaction, releasing all locks if the transaction is in prepared state." onmousemove="i18n(this)">&Pcy;&rcy;&iecy;&rcy;&vcy;&icy;&tcy;&iecy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;, &scy;&ncy;&yacy;&vcy; &vcy;&scy;&iecy; &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &vcy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&icy;.</span></p> </dd> </dl> </div> <p><span data-i18n="017716deb607ddd4e12db2c65ee19241e66fb63b326d8d6a4af452c3ea9b1d57/03" data-source="If all &amp;lt;ref&amp;gt;s can be locked with matching &amp;lt;oldvalue&amp;gt;s simultaneously, all modifications are performed. Otherwise, no modifications are performed. Note that while each individual &amp;lt;ref&amp;gt; is updated or deleted atomically, a concurrent reader may still see a subset of the modifications." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&scy;&iecy; &lt;ref&gt; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy; &zcy;&acy;&bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&shchcy;&icy;&mcy;&icy; &lt;oldvalue&gt;, &vcy;&scy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &khcy;&ocy;&tcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &lt;ref&gt; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &acy;&tcy;&ocy;&mcy;&acy;&rcy;&ncy;&ocy;, &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&jcy; &chcy;&icy;&tcy;&acy;&tcy;&iecy;&lcy;&softcy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&icy;&dcy;&iecy;&tcy;&softcy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_logging_updates"><span data-i18n="3b2ee642388a298c7b1de523b58f6fb3165f0884e4a4a4b91aa12d346ba03e69/8c" data-source="Logging updates" onmousemove="i18n(this)">Logging updates</span></h2> <div> <p><span data-i18n="24f7f2ae58fa2bc762d3bdfd03120b09f219e5336ecfe78323255f5886adf5d3/48" data-source="If config parameter &amp;quot;core.logAllRefUpdates&amp;quot; is true and the ref is one under &amp;quot;refs/heads/&amp;quot;, &amp;quot;refs/remotes/&amp;quot;, &amp;quot;refs/notes/&amp;quot;, or a pseudoref like HEAD or ORIG_HEAD; or the file &amp;quot;$GIT_DIR/logs/&amp;lt;ref&amp;gt;&amp;quot; exists then &lt;code&gt;git update-ref&lt;/code&gt; will append a line to the log file &amp;quot;$GIT_DIR/logs/&amp;lt;ref&amp;gt;&amp;quot; (dereferencing all symbolic refs before creating the log name) describing the change in ref value. Log lines are formatted as:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  &quot;core.logAllRefUpdates&quot;  &mdash;  true , &acy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &mdash; &ocy;&dcy;&ncy;&acy; &icy;&zcy;  &quot;refs/heads/&quot; ,  &quot;refs/remotes/&quot; ,  &quot;refs/notes/&quot;  &icy;&lcy;&icy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&scy;&scy;&ycy;&lcy;&kcy;&acy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy; HEAD &icy;&lcy;&icy; ORIG_HEAD; &icy;&lcy;&icy; &fcy;&acy;&jcy;&lcy;  &quot;$GIT_DIR/logs/&lt;ref&gt;&quot;  &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &tcy;&ocy;  <code>git update-ref</code>  &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &kcy; &fcy;&acy;&jcy;&lcy;&ucy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy;  &quot;$GIT_DIR/logs/&lt;ref&gt;&quot;  (&rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&yacy; &vcy;&scy;&iecy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy;&mcy; &icy;&mcy;&iecy;&ncy;&icy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy;), &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&ucy;&yucy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Scy;&tcy;&rcy;&ocy;&kcy;&icy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-undefined">oldsha1 SP newsha1 SP committer LF</pre> </div> </div> <p><span data-i18n="9df4b61ebe0a7b4e66a3ef9fce0447c19faf6d61391fffd3f118701b86208808/9d" data-source="Where &amp;quot;oldsha1&amp;quot; is the 40 character hexadecimal value previously stored in &amp;lt;ref&amp;gt;, &amp;quot;newsha1&amp;quot; is the 40 character hexadecimal value of &amp;lt;newvalue&amp;gt; and &amp;quot;committer&amp;quot; is the committer&amp;rsquo;s name, email address and date in the standard Git committer ident format." onmousemove="i18n(this)">&Gcy;&dcy;&iecy;  &quot;oldsha1&quot;  &mdash; &ecy;&tcy;&ocy; 40-&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&iecy; &shcy;&iecy;&scy;&tcy;&ncy;&acy;&dcy;&tscy;&acy;&tcy;&iecy;&rcy;&icy;&chcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &rcy;&acy;&ncy;&iecy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ocy;&iecy; &vcy; &lt;ref&gt;,  &quot;newsha1&quot;  &mdash; &ecy;&tcy;&ocy; 40-&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&iecy; &shcy;&iecy;&scy;&tcy;&ncy;&acy;&dcy;&tscy;&acy;&tcy;&iecy;&rcy;&icy;&chcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &lt;newvalue&gt;, &acy;  &quot;committer&quot;  &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&yacy;, &acy;&dcy;&rcy;&iecy;&scy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&chcy;&tcy;&ycy; &icy; &dcy;&acy;&tcy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&tcy;&iecy;&rcy;&acy; &vcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&tcy;&iecy;&rcy;&acy;  Git .</span></p> <p><span data-i18n="59cacd891001f0bd940bba9ea048d21b96f38b8f440190538b8afcfe668899fc/d4" data-source="Optionally with -m:" onmousemove="i18n(this)">&Ncy;&iecy;&ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &scy; -m:</span></p> <div> <div> <pre class="hljs language-undefined">oldsha1 SP newsha1 SP committer TAB message LF</pre> </div> </div> <p><span data-i18n="3f7b70cf3aaf65e1efa862afe5b9b285c98a012b8afa9e11eefac6dab4c3360f/9c" data-source="Where all fields are as described above and &amp;quot;message&amp;quot; is the value supplied to the -m option." onmousemove="i18n(this)">&Gcy;&dcy;&iecy; &vcy;&scy;&iecy; &pcy;&ocy;&lcy;&yacy; &tcy;&acy;&kcy;&icy;&iecy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &vcy;&ycy;&shcy;&iecy;, &acy;  &quot;message&quot;  &mdash; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &vcy; &ocy;&pcy;&tscy;&icy;&icy; -m.</span></p> <p><span data-i18n="50eb956fc11f01276548ef60cdf35b2fda0ba7de76430f30f46f41e8f896c448/10" data-source="An update will fail (without changing &amp;lt;ref&amp;gt;) if the current user is unable to create a new log file, append to the existing log file or does not have committer information available." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&scy;&yacy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&iecy;&jcy; (&bcy;&iecy;&zcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &lt;ref&gt;), &iecy;&scy;&lcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &ncy;&ocy;&vcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy;, &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &iecy;&gcy;&ocy; &kcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&mcy;&ucy; &fcy;&acy;&jcy;&lcy;&ucy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &icy;&lcy;&icy; &ncy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&tcy;&iecy;&rcy;&iecy;.</span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-update-ref">https://git-scm.com/docs/git-update-ref</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-update-server-info.html">
                            git update-server-info                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-upload-archive.html">
                            git upload-archive                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-upload-pack.html">
                            git upload-pack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-var.html">
                            git var                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-verify-commit.html">
                            git verify-commit                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-verify-pack.html">
                            git verify-pack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-verify-tag.html">
                            git verify-tag                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-update-ref.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>